<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><input type="checkbox" class="checked-all" target="order-id"></th>
            <th>内部订单号</th>
            <th>平台订单号</th>
            <th>销售平台</th>
            <th>销售账号</th>
            <th>购买用户</th>
            <th>下单日期</th>
            <th>发货日期</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {foreach $list as $item}
        <tr>
            <td><input type="checkbox" class="order-id" name="order_id[]" value="{$item.order_id}"></td>
            <td class="copy-text">{$item.order_sn}</td>
            <td class="copy-text">{$item.order_no}</td>
            <td>{$item.platform_name}</td>
            <td>{$item.account.username}</td>
            {php}$buyer = \app\common\model\Orders::getBuyerName($item);{/php}
            <td>{$buyer}</td>
            <td>{$item.order_source_create_time}</td>
            <td>{$item.shipping_time}</td>
            <td class="text-left">
                <a class="layui-btn layui-btn-xs layui-btn-normal order-recv" item="{$item.order_sn}">收货</a>
            </td>
        </tr>
        {/foreach}
        {empty name="list"}
        <tr>
            <td colspan="9">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>